{extend name="public/base" /}
    {block name="css"}
    <!-- iCheck for checkboxes and radio inputs -->
    <link rel="stylesheet" href="__ADMINLTE__plugins/iCheck/all.css">
    {/block}
  {block name="content"}
    
      <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            模型管理
            <small>Model</small>
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">

              <div class="box">
                <div class="box-header">
                  <h3 class="box-title">模型列表</h3>
                  <div class="box-tools">
                    <div class="input-group" >
                        <a href="{:U('TermModel/add')}"><button style="width: 80px" class="btn btn-primary">添加</button></a>
                    </div>
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body table-responsive no-padding">
                  <table class="table table-hover">
                    <tr>
                      <th width="20" align="left">
                          <input type="checkbox" class="minimal">
                      </th>
                      <th width="40" align="center">排序</th>
                      <th width="50" align="center">ID</th>
                      <th >模型名称</th>
                      <th >添加日期</th>
                      <th >操作</th>
                    </tr>
                    {volist name='list' id='vo'}
                    <tr>
                        <td>
                            <label>
                              <input type="checkbox" class="minimal">
                            </label>
                        </td>
                        <td>
                            <input type="text" class="listorder" style="width:35px;text-align:center;  padding-left: 0;"/>
                        </td>
                        <td >18</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.create_time|date="Y-m-d",###}</td>
                        <td>
                            <div class="btn-group">
                               <a href="{:U('TermModel/edit',array('id'=>$vo['id']))}" ><span class="btn btn-primary btn-xs">修改</span></a>
                                <a href="{:U('TermModel/del',array('id'=>$vo['id']))}"><span class="btn btn-success btn-xs">删除</span></a>
                                
                            </div>
                        </td>
                    </tr>
                    {/volist}
                      <tr>
                          <td colspan="10" align="left">
                              <input type="submit" class="btn btn-primary" value="删除" name="delete"/>&nbsp;<input type="submit" class="btn btn-primary" value="排序" />&nbsp;&nbsp;
                              <span style="color: #959595;"><span class="badge bg-aqua">!</span>&nbsp;友情提示：排序方式为“从大到小”</span>
                          </td>
                      </tr>
                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->

        </section>
		  <!-- Main content END-->
    
  {/block}
{block name="script"}
    <!-- iCheck 1.0.1 -->
    <script src="__ADMINLTE__plugins/iCheck/icheck.min.js"></script>
    <!--<script>-->
        <!--var jump = function(url){-->
            <!--window.location.href = url;-->
        <!--}-->
        <!--//iCheck for checkbox and radio inputs-->
        <!--$('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({-->
          <!--checkboxClass: 'icheckbox_minimal-blue',-->
          <!--radioClass: 'iradio_minimal-blue'-->
        <!--});-->
    <!--</script>-->
{/block}
